#include <iostream>
#include <set>

using namespace std;

int main(int argc, char const *argv[])
{
    int a[] = {1, 2, 3, 4, 5, 5, 4, 3, 2, 1};
    set<int> my_set;
    for (int i = 0; i < sizeof(a)/ sizeof(a[0]); i++) {
        my_set.insert(a[i]);
    }
    for (set<int> ::iterator it  = my_set.begin(); it != my_set.end(); it ++) {
        cout << *it << endl;
    }
    cout << "----------" <<endl;
    multiset<int> my_multiset;
    for (int i = 0; i < sizeof(a)/ sizeof(a[0]); i++) {
        my_multiset.insert(a[i]);
    }
    for (multiset<int> ::iterator it  = my_multiset.begin(); it != my_multiset.end(); it ++) {
        cout << *it << endl;
    }
    return 0;
}
